<template>
    <view>
        <block v-for="item, index in allOrderList" :key="index">
            <block v-if="item.isPay">
                <paidOrderList :paidItem="item" />
            </block>
            <block v-else>
                <unpaidOrderList :unpaidItem="item" />
            </block>
        </block>
    </view>

</template>

<script>
import unpaidOrderList from './unpaidOrderList'
import paidOrderList from './paidList'
export default {
    name: 'allOrder',
    components: {
        unpaidOrderList,
        paidOrderList
    },
    props: {
        allOrderList: {
            type: Array,
            default: () => []
        },
    },
}
</script>

<style>
</style>